package com.ruoyi.nycbfx.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.nycbfx.mapper.TbNycbfxNycbhsMapper;
import com.ruoyi.nycbfx.domain.TbNycbfxNycbhs;
import com.ruoyi.nycbfx.service.ITbNycbfxNycbhsService;

/**
 * 能源成本核算Service业务层处理
 * 
 * @author cc
 * @date 2023-11-13
 */
@Service
public class TbNycbfxNycbhsServiceImpl implements ITbNycbfxNycbhsService 
{
    @Autowired
    private TbNycbfxNycbhsMapper tbNycbfxNycbhsMapper;

    /**
     * 查询能源成本核算
     * 
     * @param id 能源成本核算主键
     * @return 能源成本核算
     */
    @Override
    public TbNycbfxNycbhs selectTbNycbfxNycbhsById(Long id)
    {
        return tbNycbfxNycbhsMapper.selectTbNycbfxNycbhsById(id);
    }

    /**
     * 查询能源成本核算列表
     * 
     * @param tbNycbfxNycbhs 能源成本核算
     * @return 能源成本核算
     */
    @Override
    public List<TbNycbfxNycbhs> selectTbNycbfxNycbhsList(TbNycbfxNycbhs tbNycbfxNycbhs)
    {
        return tbNycbfxNycbhsMapper.selectTbNycbfxNycbhsList(tbNycbfxNycbhs);
    }

    /**
     * 新增能源成本核算
     * 
     * @param tbNycbfxNycbhs 能源成本核算
     * @return 结果
     */
    @Override
    public int insertTbNycbfxNycbhs(TbNycbfxNycbhs tbNycbfxNycbhs)
    {
        return tbNycbfxNycbhsMapper.insertTbNycbfxNycbhs(tbNycbfxNycbhs);
    }

    /**
     * 修改能源成本核算
     * 
     * @param tbNycbfxNycbhs 能源成本核算
     * @return 结果
     */
    @Override
    public int updateTbNycbfxNycbhs(TbNycbfxNycbhs tbNycbfxNycbhs)
    {
        return tbNycbfxNycbhsMapper.updateTbNycbfxNycbhs(tbNycbfxNycbhs);
    }

    /**
     * 批量删除能源成本核算
     * 
     * @param ids 需要删除的能源成本核算主键
     * @return 结果
     */
    @Override
    public int deleteTbNycbfxNycbhsByIds(Long[] ids)
    {
        return tbNycbfxNycbhsMapper.deleteTbNycbfxNycbhsByIds(ids);
    }

    /**
     * 删除能源成本核算信息
     * 
     * @param id 能源成本核算主键
     * @return 结果
     */
    @Override
    public int deleteTbNycbfxNycbhsById(Long id)
    {
        return tbNycbfxNycbhsMapper.deleteTbNycbfxNycbhsById(id);
    }
}
